import request from '@/utils/request'
import Qs from 'qs'
// 代理商列表
export function getCardTypeList (params) {
  return request({
  params,
  url: '/back/cardType/getCardTypeList'
  })
  }
  
// 新增
export function addCardType (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/cardType/addCardType',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

//修改
export function updateCardType (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/cardType/updateCardType',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}



  
// 删除
export function del (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/cardType/deleteCardType',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}